#include<iostream>

using namespace std;


template<class T>
void Swap(T& a, T& b)
{
	int tmp = a;
	a = b;
	b = tmp;
}


int main()
{
	int a = 1;
	int b = 2;
	int c = 1.0;
	int d = 2.0;
	int e = 'e';
	int f = 'f';
	Swap(a, b);
	Swap(c, d);
	Swap(e, f);
	cout << a << endl;

	return 0;
}